//
//  NSBundle+BundleExtension.m
//  ZGAudioDetective
//
//  Created by 周刚涛 on 2021/9/14.
//

#import "NSBundle+BundleExtension.h"

@interface EXPlaceholderClass : NSObject

@end

@implementation EXPlaceholderClass

@end

@implementation NSBundle (BundleExtension)

/**
 获取bundle, 默认返回 JYElectricBikeBiz.bundle
 */
+ (instancetype)ex_mainBundle {
    NSString *bundlePath = [[NSBundle bundleForClass:EXPlaceholderClass.class] pathForResource:@"ZGAudioDetective" ofType:@"bundle"];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    
    if (bundle == nil) {
        bundle = [NSBundle mainBundle];
    }
    return bundle;
}

@end
